
namespace ZR.Model.FacManage.Dto
{
    /// <summary>
    /// 工厂信息查询对象
    /// </summary>
    public class FacFactoryQueryDto : PagerInfo 
    {
        /// <summary>
        /// 工厂编码
        /// </summary>
        public string FactoryCode { get; set; }

        /// <summary>
        /// 工厂名称
        /// </summary>
        public string FactoryName { get; set; }
    }

    /// <summary>
    /// 工厂信息输入输出对象
    /// </summary>
    public class FacFactoryDto
    {
        /// <summary>
        /// 工厂Id
        /// </summary>
        [Required(ErrorMessage = "工厂Id不能为空")]
        [ExcelColumn(Name = "工厂Id")]
        [ExcelColumnName("工厂Id")]
        public string FactoryId { get; set; }

        /// <summary>
        /// 工厂编码
        /// </summary>
        [Required(ErrorMessage = "工厂编码不能为空")]
        [ExcelColumn(Name = "工厂编码")]
        [ExcelColumnName("工厂编码")]
        public string FactoryCode { get; set; }

        /// <summary>
        /// 工厂名称
        /// </summary>
        [Required(ErrorMessage = "工厂名称不能为空")]
        [ExcelColumn(Name = "工厂名称")]
        [ExcelColumnName("工厂名称")]
        public string FactoryName { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [ExcelColumn(Name = "创建人")]
        [ExcelColumnName("创建人")]
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [ExcelColumn(Name = "创建时间", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
        [ExcelColumnName("创建时间")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        [ExcelColumn(Name = "更新人")]
        [ExcelColumnName("更新人")]
        public string UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [ExcelColumn(Name = "更新时间", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
        [ExcelColumnName("更新时间")]
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [ExcelColumn(Name = "备注")]
        [ExcelColumnName("备注")]
        public string Remark { get; set; }
    }
}